package com.wingstudio.springcloud.service;

import com.wingstudio.springcloud.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author ITcz
 * @Data 2021-04-15 - 9:35
 */

@Component
@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @GetMapping("/payment/get/{id}")
    R getPaymentById(@PathVariable("id") Long id);

    @GetMapping("/payment/feign/timeout")
    R tryFeignTimeout();
}
